package altSpeedometer;

public class Client {

	public static void main(String[] args) {
		System.out.println("ALT VERSION");
		// Create a listener
		SpeedMonitor monitor = new SpeedMonitor();

		// Create a speedometer and register the monitor to it...
		Speedometer speedo = new Speedometer();

		speedo.addSpeedometerListener(monitor);

		// Drive at different speeds...
		speedo.setCurrentSpeed(50);
		speedo.setCurrentSpeed(70);
		speedo.setCurrentSpeed(40);
		speedo.setCurrentSpeed(100);
		speedo.setCurrentSpeed(69);


	}
}
